ABC159 D - Banned K
提出
code: python
n = int(input())
a = list(map(int, input().split()))
for i in a:
ans = 0
for i in n_count:
ans += i * (i - 1) // 2
for i in a:
print(ans - ((n_counti * (n_counti - 1) // 2) - (((n_counti - 1) * (n_counti - 2) // 2))))